<?php
$playUrl = $_GET["play"];

$htmlControlFile = "/tmp/inmtmono.htm";
$fh = fopen($htmlControlFile, 'w+') or die ("Can't open file $htmlControlFile");

$outputString = "";
$outputString .= <<<END
<html>
<body>
<h2>
<body bgcolor="black" focuscolor="black" focustext="black" link="black" onloadset="play">
<a onfocusload name="play" href="$playUrl" vod>
press Enter to Play, Return to go Back
</a>
<br>
</body>
</html>

END;

fwrite($fh, $outputString);
fclose($fh);

$gayabcFile = "/tmp/gaya_bc";
$fh = fopen($gayabcFile, 'a') or die ("Can't open file $gayabcFile");

fwrite($fh, "file:///tmp/inmtmono.htm");
fclose($fh);
?>
